package fu.capstone.hanoicityguide.business.bo.transport;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Transportation;
import fu.capstone.hanoicityguide.dataaccess.transport.TransportDAO;
import fu.capstone.hanoicityguide.dataaccess.transport.TransportDAOImp;

public class TransportBOImp implements TransportBO {
	private Context context;

	private TransportDAO dao;

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	public TransportBOImp() {

	}

	public TransportBOImp(Context ctx) {
		this.context = ctx;
		dao = new TransportDAOImp(context);
	}

	@Override
	public ArrayList<Transportation> searchTransport(String keyword) {
		// TODO Auto-generated method stub
		return dao.searchTransport(keyword);
	}

}
